<?php

/**
 * News Object
 */
class NewsObject
{
	private $_id;
	private $_title;
	private $_content;
	private $_image;
	private $_promotion;
	
	function __construct($id = -1, $title = NULL, $content = NULL, $image = NULL, $promotion = 0)
	{
		$this->_id = $id;
		$this->_title = quotes_to_entities($title);
		$this->_content = quotes_to_entities($content);
		$this->_image = quotes_to_entities($image);
		$this->_promotion = $promotion;
	}
	
	
	public function getId()
	{
		return $this->_id;
	}
	
	public function setId($id)
	{
		$this->_id = $id;
	}
	
	public function getContent()
	{
		return quotes_to_entities($this->_content);
	}
	
	public function setContent($content)
	{
		$this->_content = quotes_to_entities($content);
	}
	
	public function getTitle()
	{
		return quotes_to_entities($this->_title);
	}
	
	public function setTitle($title)
	{
		$this->_title = quotes_to_entities($title);
	}
	
	public function getImage()
	{
		return $this->_image;
	}
	
	public function setImage($image)
	{
		$this->_image = quotes_to_entities($image);
	}
	
	public function setPromotion($promotion)
	{
		$this->_promotion = $promotion;
	}
	
	public function isPromotion()
	{
		return $this->_promotion;
	}
}


?>